class Page2 extends egret.Sprite {
	private bg: egret.Bitmap;

	private blackUp: egret.Bitmap;
	private whiteUp: egret.Bitmap;

	private down1: egret.Bitmap;

	private chat: Chat;

	private bl = true;


	private clickTimes = 0;
	private sendBtn: egret.Shape;
	private num;
	private bl_num;

	private text: egret.TextField;
	private arr;

	private sendPic1: egret.Bitmap;
	private sendPic2: egret.Bitmap;
	private sendPic3: egret.Bitmap;
	private sendPic4: egret.Bitmap;
	private sendPic5: egret.Bitmap;
	private sendPic6: egret.Bitmap;
	private blacksp: egret.Shape;

	private FBP: egret.Bitmap;

	private clickBP: egret.Bitmap;

	private shareBtn: egret.Bitmap;
	private num1136 = 1136;
	private numMinus = 54;
	private chuangyiLogo: egret.Bitmap;

	private handsendword: egret.Bitmap;
	private handenterpic: egret.Bitmap;
	private handselectpic1: egret.Bitmap;
	private handselectpic2: egret.Bitmap;
	private handsendpic: egret.Bitmap;

	private moveSP: egret.Shape;

	private bl_ud;
	private wholeMAX;
	private mY;
	private bl_next=false;

	private GoToEndBtn:egret.Bitmap;
	

	public constructor() {
		super();
		this.initial();
		this.arr = new Array();
		this.arr.push("Paul，好久不见，最近好吗？");
		this.arr.push("蛮好的。你呢，在摩纳哥生活怎么样");
		this.arr.push("我在“大斜坡”晨跑呢！看，摩纳哥的日出很美吧？");
		this.arr.push("4呱呱呱呱呱呱呱呱呱呱呱呱呱呱");
		this.arr.push("amazing！决定今年就去摩纳哥度假了");
		this.arr.push("可惜不能给你做向导，我决定回上海了，后天的航班");
		this.arr.push("看国内新闻，上海拥堵挺严重的吧！");
		this.arr.push("还好啦，新闻总是夸张。最近几年建了不少高架、隧道、地铁。我从人民广场开车到前滩，只用了二十几分钟");
		this.arr.push("这效率，不输摩纳哥蒙特卡洛F1赛道呀");
		this.arr.push("说心里话。在摩纳哥的时候，经常梦回到上海。可即将回国，又担心会太想念摩纳哥");
		this.arr.push("浦东在建一座摩纳哥风格的凯利玫瑰园，就在前滩附近，听说是国际住区，我去网上down几张图发你");
		this.arr.push("Great~我要告诉我的朋友们！");
		this.arr.push("Great~我要告诉我的朋友们！");
		this.arr.push("Great~我要告诉我的朋友们！");
		// this.arr.push("123");
		// this.arr.push("Creat~我要告诉我的朋友们！");

		// this.moveSP = new egret.Shape();
		// this.moveSP.graphics.beginFill(0xff0000, 0.5)
		// this.moveSP.graphics.drawRect(0, 712, 100, 20);
		// this.addChild(this.moveSP);
		// this.moveSP.touchEnabled = true;
		// this.moveSP.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.UDBegin, this);
		// this.moveSP.addEventListener(egret.TouchEvent.TOUCH_MOVE, this.UPandDOWN, this);
		this.bl_ud = true;

		GoEvent.msg.addEventListener("clickedPic",this.ClickedPic,this);
	}
	private UDBegin(e: egret.TouchEvent) {
		this.mY = e.localY;
		this.wholeMAX = this.chat.whole.y;
	}
	private UPandDOWN(e: egret.TouchEvent) {
		// console.log(e.localY, this.mY, this.chat.whole.y);
		if (this.chat.whole.y + e.localY - this.mY > this.wholeMAX&&this.chat.whole.y + (e.localY - this.mY)*2 <=0) {
				this.chat.whole.y += e.localY - this.mY;
		}
	}
	private initial() {
		this.bg = new egret.Bitmap(RES.getRes("page2pic0_png"));
		this.addChild(this.bg);
		this.bg.x = 640;

		this.text = new egret.TextField();
		this.text.text = "呱呱呱呱呱呱呱呱呱呱呱呱呱呱呱呱呱呱";
		this.text.size = 18;
		this.text.fontFamily = "Arial";
		this.text.textColor = 0x000000;
		this.text.multiline = true;
		this.text.size = 30;
		this.text.x = 100;
		this.text.y = 1060 - this.numMinus;


		this.text.alpha = 0;







		this.chat = new Chat();
		this.addChild(this.chat);

		this.down1 = new egret.Bitmap(RES.getRes("page2pic3_png"));
		this.down1.x = 640; this.down1.y = 1035 - this.numMinus;
		this.addChild(this.down1);
		this.addChild(this.text);

		this.blackUp = new egret.Bitmap(RES.getRes("page2pic1_png"))
		this.addChild(this.blackUp);
		this.whiteUp = new egret.Bitmap(RES.getRes("page2pic2_png"));
		this.addChild(this.whiteUp);
		this.whiteUp.alpha = 0;
		this.whiteUp.x = 37; this.whiteUp.y = 64;


		this.sendBtn = new egret.Shape();
		this.sendBtn.graphics.beginFill(0x000000, 0);
		this.sendBtn.graphics.drawRect(500, 950, 140, 300);
		this.addChild(this.sendBtn);
		this.sendBtn.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.SB, this);

		// this.blackUp.touchEnabled=true;
		// this.blackUp.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.TB,this);
		this.handsendword = new egret.Bitmap(RES.getRes("flower_png"));
		this.handenterpic = new egret.Bitmap(RES.getRes("flower_png"));;
		this.handselectpic1 = new egret.Bitmap(RES.getRes("flower_png"));;
		this.handselectpic2 = new egret.Bitmap(RES.getRes("flower_png"));;
		this.handsendpic = new egret.Bitmap(RES.getRes("flower_png"));;


		this.sendPic1 = new egret.Bitmap(RES.getRes("sendpic1_png"));
		this.sendPic2 = new egret.Bitmap(RES.getRes("sendpic2_png"));
		this.sendPic3 = new egret.Bitmap(RES.getRes("sendpic4_png"));
		this.sendPic4 = new egret.Bitmap(RES.getRes("sendpic4_png"));
		this.sendPic5 = new egret.Bitmap(RES.getRes("sendpic3_png"));
		this.sendPic6 = new egret.Bitmap(RES.getRes("sendpic6_png"));

		this.sendPic1.y = this.num1136 - this.numMinus;
		this.sendPic2.x = 640;
		this.sendPic2.y = 128;
		this.sendPic3.y = 127;
		this.sendPic4.x = 215;
		this.sendPic4.y = 127;
		this.sendPic3.alpha = 0;
		this.sendPic4.alpha = 0;
		this.sendPic5.x = 506;
		this.sendPic5.y = 62;
		this.sendPic5.alpha = 0;

		this.sendPic6.x = 506;
		this.sendPic6.y = 62;
		this.sendPic6.alpha = 0;

		this.blacksp = new egret.Shape();
		this.blacksp.graphics.beginFill(0x000000, 1);
		this.blacksp.graphics.drawRect(0, 0, 640, 1136);
		this.addChild(this.blacksp);
		this.blacksp.x = 640;


		this.addChild(this.sendPic1);
		this.addChild(this.sendPic2);
		this.addChild(this.sendPic3);
		this.addChild(this.sendPic4);
		this.addChild(this.sendPic5);
		this.addChild(this.sendPic6);

		this.addChild(this.handsendword);
		this.addChild(this.handenterpic);
		this.addChild(this.handselectpic1);
		this.addChild(this.handselectpic2);
		this.addChild(this.handsendpic);

		//
		this.handsendword.x = 536 + this.handsendword.width / 2;
		this.handsendword.y = 1046 + this.handsendword.height / 2 - this.numMinus;
		this.handsendword.anchorOffsetX = this.handsendword.width / 2;
		this.handsendword.anchorOffsetY = this.handsendword.height / 2;
		egret.Tween.get(this.handsendword, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 800).to({ scaleX: 1, scaleY: 1 }, 400);
		this.handsendword.alpha = 0;

		//
		this.handenterpic.x = 110 + this.handenterpic.width / 2;
		this.handenterpic.y = 742 + this.handenterpic.height / 2 - this.numMinus;
		this.handenterpic.anchorOffsetX = this.handenterpic.width / 2;
		this.handenterpic.anchorOffsetY = this.handenterpic.height / 2;
		egret.Tween.get(this.handenterpic, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 700).to({ scaleX: 1, scaleY: 1 }, 700);
		this.handenterpic.alpha = 0;
		//
		this.handselectpic1.x = 70 + this.handselectpic1.width / 2;
		this.handselectpic1.y = 185 + this.handselectpic1.height / 2;
		this.handselectpic1.anchorOffsetX = this.handselectpic1.width / 2;
		this.handselectpic1.anchorOffsetY = this.handselectpic1.height / 2;
		egret.Tween.get(this.handselectpic1, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 700).to({ scaleX: 1, scaleY: 1 }, 700);
		this.handselectpic1.alpha = 0;
		//
		this.handselectpic2.x = 280 + this.handselectpic2.width / 2;
		this.handselectpic2.y = 185 + this.handselectpic2.height / 2;
		this.handselectpic2.anchorOffsetX = this.handselectpic2.width / 2;
		this.handselectpic2.anchorOffsetY = this.handselectpic1.height / 2;
		egret.Tween.get(this.handselectpic2, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 700).to({ scaleX: 1, scaleY: 1 }, 700);
		this.handselectpic2.alpha = 0;

		this.handsendpic.x = 435 + this.handsendpic.width / 2;
		this.handsendpic.y = 51 + this.handsendpic.height / 2;
		this.handsendpic.anchorOffsetX = this.handsendpic.width / 2;
		this.handsendpic.anchorOffsetY = this.handsendpic.height / 2;
		egret.Tween.get(this.handsendpic, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 700).to({ scaleX: 1, scaleY: 1 }, 700);
		this.handsendpic.alpha = 0;



		this.FBP = new egret.Bitmap(RES.getRes("Final_png"));
		this.addChild(this.FBP);
		this.FBP.x = 640;
		this.FBP.y = this.numMinus;

		this.shareBtn = new egret.Bitmap(RES.getRes("share_png"));
		this.addChild(this.shareBtn);
		this.shareBtn.anchorOffsetX = this.shareBtn.width / 2;
		this.shareBtn.anchorOffsetY = this.shareBtn.height / 2;
		this.shareBtn.x = 555 + this.shareBtn.width / 2; this.shareBtn.y = 70 + this.shareBtn.height / 2;
		egret.Tween.get(this.shareBtn, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 700).to({ scaleX: 1, scaleY: 1 }, 700);
		this.shareBtn.alpha = 0;

		this.clickBP = new egret.Bitmap(RES.getRes("click2_png"));
		this.addChild(this.clickBP);
		this.clickBP.x = 566 + this.clickBP.width / 2;
		this.clickBP.y = 1064 + this.clickBP.height / 2 - this.numMinus;
		this.clickBP.anchorOffsetX = this.clickBP.width / 2;
		this.clickBP.anchorOffsetY = this.clickBP.height / 2;
		egret.Tween.get(this.clickBP, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 700).to({ scaleX: 1, scaleY: 1 }, 700);
		this.clickBP.alpha = 0;

		this.chuangyiLogo = new egret.Bitmap(RES.getRes("chuangyiLogo_png"));
		this.addChild(this.chuangyiLogo);
		this.chuangyiLogo.x = 582; this.chuangyiLogo.y = 750;
		this.chuangyiLogo.alpha = 0;



		this.GoToEndBtn=new egret.Bitmap(RES.getRes("GoToEnd_png"));
		this.addChild(this.GoToEndBtn);
		this.GoToEndBtn.alpha=0;
		this.GoToEndBtn.x = 510 + this.GoToEndBtn.width / 2;
		this.GoToEndBtn.y = 968 + this.GoToEndBtn.height / 2 - this.numMinus-this.numMinus;
		this.GoToEndBtn.anchorOffsetX = this.GoToEndBtn.width / 2;
		this.GoToEndBtn.anchorOffsetY = this.GoToEndBtn.height / 2;
		egret.Tween.get(this.GoToEndBtn, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 700).to({ scaleX: 1, scaleY: 1 }, 700);
	}
	public Show() {
		egret.Tween.get(this.bg).to({ x: 0 }, 700, egret.Ease.cubicOut);
		egret.Tween.get(this.whiteUp).wait(300).to({ alpha: 1 }, 700, egret.Ease.cubicOut);
		egret.Tween.get(this.down1).to({ x: 0 }, 700, egret.Ease.cubicOut);

		// var This=this;
		// setTimeout(function(){
		// 	This.bala();
		// 	This.frameUp();
		// },500);
		this.addEventListener(egret.Event.ENTER_FRAME, this.EF, this);
		this.num = 0;
		this.bl_num = true;

	}
	private SendPicUp() {
		
		egret.Tween.get(this.handenterpic).wait(300).to({ alpha: 1 }, 700, egret.Ease.cubicOut);
		// this.clickBP.x=130;this.clickBP.y=774-this.numMinus;
		// egret.Tween.get(this.clickBP).to({alpha:1},700);


		this.sendPic1.y = this.num1136 - this.numMinus;
		egret.Tween.get(this.down1).to({ y: 594 - this.numMinus }, 700, egret.Ease.cubicOut);
		egret.Tween.get(this.sendPic1).to({ y: 695 - this.numMinus }, 700, egret.Ease.cubicOut);
		this.chat.SetBottom(570 - this.numMinus);
		this.bl_num = false;

		this.sendPic1.touchEnabled = true;
		this.sendPic1.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.SPU, this);

	}
	private SPU(e: egret.TouchEvent) {



		if (e.target == this.sendPic1) {
			egret.Tween.get(this.handselectpic1).wait(700).to({ alpha: 1 }, 700, egret.Ease.cubicOut);
			egret.Tween.get(this.handselectpic2).wait(800).to({ alpha: 1 }, 700, egret.Ease.cubicOut);

			egret.Tween.removeTweens(this.handenterpic);
			egret.Tween.get(this.handenterpic).to({ alpha: 0 }, 200, egret.Ease.cubicOut);
			this.sendPic5.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.SPU, this);

			egret.Tween.get(this.sendPic5).to({ alpha: 1 }, 700, egret.Ease.cubicOut);
			this.sendPic1.touchEnabled = false;
			egret.Tween.get(this.sendPic2).to({ x: 0 }, 700, egret.Ease.cubicOut);
			egret.Tween.get(this.blacksp).to({ x: 0 }, 700, egret.Ease.cubicOut);
			this.sendPic3.touchEnabled = true;
			this.sendPic4.touchEnabled = true;
			this.sendPic3.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.SPU, this);
			this.sendPic4.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.SPU, this);
		}
		else if (e.target == this.sendPic3) {
			e.target.alpha = 1;
			e.target.touchEnabled = false;
			egret.Tween.removeTweens(this.handselectpic1);
			egret.Tween.get(this.handselectpic1).to({ alpha: 0 }, 700, egret.Ease.cubicOut);
		}
		else if (e.target == this.sendPic4) {
			e.target.alpha = 1;
			e.target.touchEnabled = false;
			egret.Tween.removeTweens(this.handselectpic2);
			egret.Tween.get(this.handselectpic2).to({ alpha: 0 }, 700, egret.Ease.cubicOut);
		}
		if (!this.sendPic3.touchEnabled && !this.sendPic4.touchEnabled) {
			this.sendPic5.touchEnabled = true;
			this.sendPic6.alpha = 1;
			egret.Tween.get(this.handsendpic).to({ alpha: 1 }, 700, egret.Ease.cubicOut);
		}
		if (e.target == this.sendPic5) {
			egret.Tween.removeTweens(this.handsendpic);
			egret.Tween.get(this.blacksp).to({ x: 640 }, 700, egret.Ease.cubicOut);
			egret.Tween.get(this.sendPic2).to({ x: 640 }, 700, egret.Ease.cubicOut);
			egret.Tween.get(this.sendPic5).to({ alpha: 0 }, 700, egret.Ease.cubicOut);
			egret.Tween.get(this.sendPic3).to({ x: 640 }, 700, egret.Ease.cubicOut);
			egret.Tween.get(this.sendPic4).to({ x: 640 + 215 }, 700, egret.Ease.cubicOut);
			egret.Tween.removeTweens(this.handsendpic);
			egret.Tween.get(this.handsendpic).to({ alpha: 0 }, 300, egret.Ease.cubicOut);
			this.sendPic5.alpha = 0;
			this.sendPic6.alpha = 0;
			this.sendPic5.touchEnabled = false;

			this.down1.y = 1035 - this.numMinus;
			this.sendPic1.y = this.num1136 - this.numMinus;


			this.bala();
			var This=this;

			//***************
			this.bl_num = true;
			// setTimeout(function(){
			This.bala();
			// },1000);
			//***************
			//***************
		}

	}
	


	private frameUp() {

		egret.Tween.get(this.handsendword).wait(300).to({ alpha: 1 }, 700);

		// egret.Tween.get(this.clickBP).to({alpha:1},700);
		egret.Tween.get(this.down1).to({ y: 594 - this.numMinus }, 700, egret.Ease.cubicOut);
		this.chat.SetBottom(570 - this.numMinus);
		var This = this;
		setTimeout(function(){
			This.sendBtn.touchEnabled = true;
		},600)
		
		this.bl_num = false;
		this.text.text = this.arr[this.clickTimes];

		if (this.text.width > 400) {
			this.text.width = 400;
		}
		if (this.text.height > 100) {
			this.text.height = 60;
			// this.text.scaleX=0.7;
			// this.text.scaleY=0.7;
		}
		// console.log(this.text.width, this.text.height);



		egret.Tween.get(this.text).to({ alpha: 1, y: 1060 - 441 - this.numMinus }, 700, egret.Ease.cubicOut);
	}
	private SB(e: egret.TouchEvent) {
		egret.Tween.removeTweens(this.handsendword);
		this.handsendword.scaleX=1;this.handsendword.scaleY=1;
		egret.Tween.get(this.handsendword, { loop: true }).to({ scaleX: 0.5, scaleY: 0.5 }, 800).to({ scaleX: 1, scaleY: 1 }, 400);
		egret.Tween.get(this.handsendword).to({ alpha: 0 }, 300);
		// egret.Tween.get(this.clickBP).to({alpha:0},300)
		egret.Tween.removeTweens(this.text);
		this.text.alpha = 0;
		this.text.y = 1060 - this.numMinus;
		egret.Tween.get(this.down1).to({ y: 1035 - this.numMinus }, 700, egret.Ease.cubicOut);
		// this.chat.SetBottom(1010-this.numMinus);
		this.sendBtn.touchEnabled = false;
		this.bl_num = true;
		var This=this;
		This.bala();
	}
	private EF(e: egret.Event) {
		// console.log(this.num);
		if (this.bl_num) {
			this.num++;
		}
		var k = 120;
		switch (this.num) {
			case 60://第一次
				this.bala();

				// this.SendPicUp();
				this.num++;
				break;
			case k + 20:
				this.frameUp();
				this.num++;
				break;
			case k * 2://第二次
				this.bala();
				this.num++;
				break;
			case k * 3://第三次
				this.bala();
				this.bl_num = false;
				this.num++;	
				break;
			case k * 3 + 1:
			//*************
				this.bl_num=true;
			//*************
			
				// if (this.chat.NumWhetherTrue()) {
				// 	this.bl_num = true;
				// 	this.num++
				// }
				break;
			case k * 4:
			//*************
			GoEvent.msg.dispatchEvent(new GoEvent("noClickPic","1"));
			//*************
				this.frameUp();

				this.num++;
				break;
			case k * 5:
				this.bala();
				break;
			case k * 6:
				this.bala();
				break;
			case k * 7:
				this.frameUp();
				this.num++;
				break;
			case k * 8:
				this.bala();
				this.num++;
				break;
			case k * 9:
				this.bala();
				this.num++;
				break;
			case k * 10:
				this.frameUp();
				this.num++;
				break;
			case k * 11:
				this.SendPicUp();
				this.num++;
				break;
			case k * 11+1:
			console.log("tu2");
			// if(this.chat.NumWhetherTrue()){
			// 		console.log("123");
			// 		var This=this;
			// 		setTimeout(function(){
			// 			This.bala();
			// 		},400)
			// 		this.num++;
			// 		this.bl_num = true;
			// }
			
				break;
			case k * 12 :
			console.log("tu3");
				// this.bl_num=false;
				// if (this.chat.LastPicShowEnd()) {
				// 	this.bl_num = true;
				// }
				break;
			case k * 12+1:
				this.bala();
				//******************
				GoEvent.msg.dispatchEvent(new GoEvent("noClickPic","2"));
				GoEvent.msg.dispatchEvent(new GoEvent("noClickPic","3"));
				//******************

				this.chat.SetCanRollTrue();
				break;
			case k * 12+4*60:
				
				egret.Tween.get(this.GoToEndBtn).wait(300).to({alpha:1},700,egret.Ease.cubicOut);
				this.GoToEndBtn.touchEnabled=true;
				this.GoToEndBtn.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.gotoend,this);
				// setTimeout(function () {
				// 	MusicOnOff(true);
				// }, 1000)
				// this.num++;
				// egret.Tween.get(this.FBP).to({ x: 0 }, 1000, egret.Ease.cubicOut);
				// egret.Tween.get(this.chuangyiLogo).wait(1000).to({ alpha: 1 }, 700, egret.Ease.cubicOut);
				// egret.Tween.get(this.shareBtn).wait(500).to({ alpha: 1 }, 500, egret.Ease.cubicOut);
				break;
		}
	}
	private gotoend(e:egret.TouchEvent){
		this.GoToEndBtn.removeEventListener(egret.TouchEvent.TOUCH_BEGIN,this.gotoend,this);
		egret.Tween.get(this.GoToEndBtn).wait(300).to({alpha:0},300,egret.Ease.cubicOut);

		MusicOnOff(true);
		egret.Tween.get(this.FBP).to({ x: 0 }, 1000, egret.Ease.cubicOut);
		egret.Tween.get(this.chuangyiLogo).wait(1000).to({ alpha: 1 }, 700, egret.Ease.cubicOut);
		egret.Tween.get(this.shareBtn).wait(500).to({ alpha: 1 }, 500, egret.Ease.cubicOut);
			
	}
	private ClickedPic(e:GoEvent){
		if(e.data=="true"){
			this.bl_num=true;
		}
		else{
			this.bl_num=false;
		}
	}
	private bala() {
		this.clickTimes++;
		switch (this.clickTimes) {
			case 1: this.chat.DoIt("Rose", this.arr[this.clickTimes - 1], false); MusicOnOff2(true); break;
			case 2: this.chat.DoIt("Paul", this.arr[this.clickTimes - 1], false); break;
			case 3: this.chat.DoIt("Rose", this.arr[this.clickTimes - 1], false); MusicOnOff2(true); break;
			case 4: this.chat.DoIt("Rose", this.arr[this.clickTimes - 1], true); MusicOnOff2(true); break;
			case 5: this.chat.DoIt("Paul", this.arr[this.clickTimes - 1], false); break;
			case 6: this.chat.DoIt("Rose", this.arr[this.clickTimes - 1], false); MusicOnOff2(true); break;
			case 7: this.chat.DoIt("Rose", this.arr[this.clickTimes - 1], false); MusicOnOff2(true); break;
			case 8: this.chat.DoIt("Paul", this.arr[this.clickTimes - 1], false); break;
			case 9: this.chat.DoIt("Rose", this.arr[this.clickTimes - 1], false); MusicOnOff2(true); break;
			case 10: this.chat.DoIt("Rose", this.arr[this.clickTimes - 1], false); MusicOnOff2(true); break;
			case 11: this.chat.DoIt("Paul", this.arr[this.clickTimes - 1], false); break;
			case 12: this.chat.DoIt("Paul", this.arr[this.clickTimes - 1], true); break;
			case 13: this.chat.DoIt("Paul", this.arr[this.clickTimes - 1], true); break;
			case 14: this.chat.DoIt("Rose", this.arr[this.clickTimes - 1], false); MusicOnOff2(true); break;
		}
	}

}
declare function MusicOnOff2(bl)
declare function MusicOnOff(bl)

